package com.edu.controller;

import com.edu.service.RoleService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @作者 five-five
 * @创建时间 2021/1/25
 */
@RestController
@Api(tags = "角色接口测试")
@RequestMapping(value = "/role")
public class RoleController {
    @Autowired
    private RoleService roleService;
    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public Object getAll() {
        return roleService.getAll();
    }
}
